<ion-view view-title="{{title}}">
	
	 <ion-content>
	 <div class="list list-borderless">
      <li class="item item-input margin-bottom-10">
			<span class="assertive">*</span>经销	商：{{agenter_name}}
			<span class="bian_gray positive font-large-my border-radius-my" style="padding: 0px 5px;" on-tap="showAgent()" ng-show="store_id==''">添加</span>
		</li>
		
		<div class="list list-borderless margin-bottom-10" ng-repeat="detail in detail.brand ">
			<li class="item item-input">
				<span class="assertive">*</span>品牌：
				<div class="input-value small" ng-click="doSelectbrand(detail)">{{detail.brand.name}}</div>
	   			<i class="icon ion-plus-circled font-1rem-my positive" on-tap="addMore()" ng-show="$index==0"></i>&nbsp;
				<i class="icon ion-minus-circled font-1rem-my assertive" on-tap="reduceMore($index)" ng-show="$index>0" ></i>&nbsp;
			</li>
			<li class="item item-input" on-tap="get_brand_id(detail.brand.id)">
					  <span class="assertive">*</span>品类：
					  <div class="input-value small" ng-click="doSelectCat1(detail)">{{detail.cat1.name}}</div>
					  <div class="input-value small" ng-click="doSelectCat2(detail)">{{detail.cat2.name}}</div>
					  <div class="input-value small" ng-click="doSelectCat3(detail)">{{detail.cat3.name}}</div>
	   			<i class="icon ion-plus-circled font-1rem-my positive" on-tap="input_cat_data(detail)"></i>&nbsp;
       		</li>
	
			<li class="item  padding-5 item-icon-right" ng-repeat="cat in detail.cat_type" style="font-size: 0.5rem;width: 100%;height: 100%;">
				<span class="invisible">空</span>
				<span ng-class="{invisible:$index>0}" style="padding-left: 5px;">已选分类：</span>{{cat.name|limitTo:20}}<span ng-if="cat.name.length>20">...</span></p>
				<i class="icon ion-minus-circled font-1rem-my assertive " style="right: 0px;" on-tap="delete_cat(detail.cat_type,$index)"></i>
			</li>
		<li class="item item-input">
			<span class=" assertive">*</span>区域：
			<div class="input-value small" ng-click="doSelectProvince(detail)">{{detail.province.name}}</div>
			<div class="input-value small" ng-click="doSelectCity(detail)">{{detail.city.name}}</div>
			<div class="input-value small" ng-click="doSelectDistrict(detail)">{{detail.district.name}}</div>
				<i class="icon ion-plus-circled font-1rem-my positive" on-tap="input_region_data(detail)"></i>&nbsp;
		</li>
		<li class="item item-icon-right padding-5" ng-repeat="region in detail.region" style="font-size: 0.5rem;">
			<span class="invisible">空</span>
			<span ng-class="{invisible:$index>0}" style="padding-left: 5px;">代理区域：</span>{{region.name|limitTo:20}}<span ng-if="region.name.length>20">...</span>
			<i class="icon ion-minus-circled font-1rem-my assertive" style="right: 0px;" on-tap="delete_region(detail.region,$index)"></i>
		</li>
		<li class="item item-toggle">
			能否改价：
			<label class="toggle toggle-positive">
	            <input type="checkbox" checked="" ng-model="detail.is_price">
	            <div class="track">
	               <div class="handle"></div>
	            </div>
            </label>
		</li>
	</div>
	
	<li class="item item-input">
		授信额度：
		<input type="number" placeholder="请输入授信额度" ng-model="detail.credit_line" />
	</li>

		<div class="padding">
			<button class="button button-block button-shop" on-tap="get_info()">确认添加</button>
		</div>
	 </ion-content>
</ion-view>
